
<?php

class form{
	public $filas;
	public $columnas;
	
	public function handlePost(){
		$this->filas=$_POST['filas'];
		$this->columnas=$_POST['columnas'];			
		echo "<html><body><br><br><br><center><h2>Tabla Generada</h2><br>";
		echo "<table border=1 width=400>\n";
		
		for ($i=0; $i < $this->columnas; $i++){
			echo "<tr>\n";
			 
			 for($j=0; $j < $this->filas; $j++){
				echo "<td>\n &nbsp \n";
				echo "</td>\n";		 
			 }
			echo "</tr>";
		}
		echo "</html></body></table>";
	}
	
	
	
	/*public function validarLogin(){
		if(($this->arr_usu[0]==$this->usu_s) and ($this->arr_pass[0]==$this->pass_s))
			//header("location:../pag_principal.php");
			return true;
		else
			//header("location:../index.php");
			return false;
	}*/
}


//instancia de la clase
$instanciaClase = new form;
$instanciaClase->handlePost();

?>